package com.theory.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class Subject implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty("题目")
    private String topic;

    @ExcelProperty("选项1")
    @TableField("A")
    private String optionsA;

    @ExcelProperty("题目B")
    @TableField("B")
    private String optionsB;

    @ExcelProperty("题目C")
    @TableField("C")
    private String optionsC;

    @ExcelProperty("题目D")
    @TableField("D")
    private String optionsD;

    @ExcelProperty("答案")
    private String answer;

    private String complete;



    @Override
    public String toString() {
        return topic + optionsA + optionsB + optionsC + optionsD;
    }

}
